package com.zdb.demo.design.pattern.creational.singleton;

public enum EnumInstance {

    INSTANCE {
        protected void printTest() {
            System.out.println("------- instance printTest() --------");
        }
    };

    protected  abstract void printTest();

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
